(function () { function createIconElement(name, sourceEl) { const icon = document.createElement('i'); icon.dataset.lucide = name; icon.setAttribute('aria-hidden', 'true'); if (sourceEl) { const className = sourceEl.getAttribute('class'); if (className) { icon.setAttribute('class', className); } } return icon; } function replaceIcon(sourceEl, name) { if (!sourceEl || !name) { return; } sourceEl.replaceWith(createIconElement(name, sourceEl)); } function pickByText(text, rules, fallback = null) { const value = (text || '').toLowerCase(); for (const [needle, iconName] of rules) { if (value.includes(needle)) { return iconName; } } return fallback; } function replaceDropdownIcons() { document.querySelectorAll('.dropdown-menu-item').forEach((item) => { const iconEl = item.querySelector('.dropdown-item-icon svg'); if (!iconEl) { return; } const label = item.querySelector('h4')?.textContent || item.textContent || ''; const iconName = pickByText(label, [ ['compressed biogas', 'flame'], ['cbg', 'flame'], ['green hydrogen', 'atom'], ['carbon capture', 'cloud'], ['carbon credits', 'bar-chart-3'], ['district cooling', 'snowflake'], ], 'circle'); replaceIcon(iconEl, iconName); }); } function replaceSolutionCards() { document.querySelectorAll('.solution-feature-card').forEach((card) => { const iconEl = card.querySelector('.solution-feature-icon svg'); if (!iconEl) { return; } const title = card.querySelector('h3')?.textContent || ''; const iconName = pickByText(title, [ ['hydrogen production', 'factory'], ['fuel cell applications', 'battery'], ['refueling stations', 'fuel'], ['storage and transportation', 'truck'], ['energy efficient', 'zap'], ['valuable byproducts', 'package'], ['carbon-negative', 'leaf'], ['formal approval', 'badge-check'], ['market applications', 'bar-chart-3'], ['commercial confidence', 'shield-check'], ['compressed biogas', 'flame'], ['biocng', 'flame'], ['ccus', 'cloud'], ['waste conversion', 'recycle'], ['ready-to-run', 'factory'], ['commercial success', 'coins'], ['fuel substitute', 'fuel'], ['environmental value', 'leaf'], ['revenue streams', 'coins'], ['compact hardware', 'package'], ['performance indicators', 'bar-chart-3'], ['key advantages', 'shield-check'], ['biogas / biomethane co2', 'cloud'], ['syngas / blue hydrogen co2', 'atom'], ['industrial flue gas co2', 'factory'], ['lower methane loss', 'shield'], ['lower energy demand', 'zap'], ['higher recovery', 'target'], ['better scalability', 'layers'], ['greenhouse enrichment', 'sprout'], ['dry ice / cold chain', 'snowflake'], ['pcc / mineralization', 'beaker'], ['co2-cured products', 'building'], ], null); if (iconName) { replaceIcon(iconEl, iconName); } }); } function replaceAboutAndTechnicalIcons() { document.querySelectorAll('.solution-about-item, .solution-technical-item').forEach((item) => { const iconEl = item.querySelector('.solution-about-icon svg'); if (!iconEl) { return; } const title = item.querySelector('h3')?.textContent || ''; const iconName = pickByText(title, [ ['leadership', 'users'], ['delivery model', 'route'], ['project intent', 'target'], ['methane pyrolysis', 'flame'], ['zero co2 emissions', 'cloud-off'], ['carbon byproducts', 'package'], ['inputs', 'arrow-down-to-line'], ['outputs', 'arrow-up-to-line'], ['execution focus', 'rocket'], ['methane feed', 'arrow-down'], ['heating and reactor operation', 'flame'], ['separation and analysis', 'sliders-horizontal'], ['safety and automation', 'shield-check'], ['compact hardware', 'package'], ['performance indicators', 'bar-chart-3'], ['key advantages', 'shield-check'], ], null); if (iconName) { replaceIcon(iconEl, iconName); } }); } function replaceHome2Icons() { document.querySelectorAll('.pillar-item').forEach((item) => { const iconEl = item.querySelector('.pillar-icon svg'); if (!iconEl) { return; } const title = item.querySelector('h3')?.textContent || ''; const iconName = pickByText(title, [ ['turnkey cbg', 'factory'], ['ccus', 'cloud'], ['sustainable value', 'leaf'], ], null); if (iconName) { replaceIcon(iconEl, iconName); } }); document.querySelectorAll('.solution-card').forEach((card) => { const iconEl = card.querySelector('.card-icon-wrapper svg'); if (!iconEl) { return; } const title = card.querySelector('.header-text-group h3')?.textContent || ''; const iconName = pickByText(title, [ ['compressed biogas', 'flame'], ['carbon capture', 'cloud'], ], null); if (iconName) { replaceIcon(iconEl, iconName); } }); document.querySelectorAll('.floating-badge .badge-icon svg').forEach((iconEl) => { replaceIcon(iconEl, 'trending-up'); }); document.querySelectorAll('.footer-metric-item').forEach((item) => { const iconEl = item.querySelector('.metric-icon-wrapper svg'); if (!iconEl) { return; } const title = item.querySelector('.metric-text h4')?.textContent || ''; const iconName = pickByText(title, [ ['100% sold', 'badge-check'], ['3.2 years', 'clock-3'], ['25% capex', 'percent'], ['rs 70-80l', 'landmark'], ], null); if (iconName) { replaceIcon(iconEl, iconName); } }); } function replaceHomePageContactIcons() { document.querySelectorAll('.contact-link-item .link-icon i[data-lucide]').forEach((icon) => { const label = icon.closest('.contact-link-item')?.textContent || ''; if (label.toLowerCase().includes('email')) { icon.dataset.lucide = 'mail'; } }); } function replaceRemainingCustomIcons() { replaceDropdownIcons(); replaceSolutionCards(); replaceAboutAndTechnicalIcons(); replaceHome2Icons(); replaceHomePageContactIcons(); } function initLucideIcons() { replaceRemainingCustomIcons(); if (!window.lucide || typeof window.lucide.createIcons !== 'function') { return; } window.lucide.createIcons(); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', initLucideIcons, { once: true }); } else { initLucideIcons(); } })();